package com.leorui.schoollife.controller

import org.springframework.web.bind.annotation.RequestParam

interface IPersonalInfoControl {
    /**
     * 获取个人信息
     * @param account 账号
     */
    fun getPersonalInfo(@RequestParam(name = "account", required = true) account: String): Map<Any?, Any?>

    /**
     * 更改个人信息，更改时需要携带多个参数
     * @param account 账号
     * @param personalProfile 个人简介
     * @param schoolId 学校id
     * @param sex 性别
     * @param studentId 学生id
     * @param area 地区
     * @param phone 电话
     * @param nickname 昵称
     * @param teacherId 教师id
     * @param teachClass 教师教授课程
     */
    fun modifyPersonalInfo(account: String, personalProfile: String, schoolId: Int, icon: String, sex: Int, area: String, phone: String, nickname: String, studentId: String, teacherId: String?, teachClass: String?): Map<Any?, Any?>

    /**
     * 更改个人头像
     * @param account 个人账号
     * @param iconPath 头像地址，从服务端获取
     */
    fun modifyPersonalIcon(account: String, iconPath: String): Map<Any?, Any?>
}